#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    lineEdit = new QLineEdit;
    
    connect(lineEdit,&QLineEdit::returnPressed,[&](){
        ui->widget->setMarkVal(lineEdit->text());
    });
    //远端更改
}

MainWindow::~MainWindow()
{
    delete ui;
}



void MainWindow::on_pushButton_toggled(bool checked)
{
    ui->widget->setMarkerShow(checked);
}

void MainWindow::on_pushButton_2_clicked()
{

}

void MainWindow::on_pushButton_3_clicked()
{
    lineEdit->show();
}
